<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div {
            color: red;
        }

        p {
            /*important将样式的优先级提升到最高*/
            color: green !important;
        }

        #p1 {
            color: blue;
        }
    </style>
</head>
<body>
<p id="p1">p1</p>
<div>div
    <p>p2</p>
    <span>span</span>
    <a href="">超链接</a>
</div>
</body>
</html>